<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ page import="com.zhangmengyuan.medical.entity.Goods" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<!-- Template Name: Clip-One - Responsive Admin Template build with Twitter Bootstrap 3.x Version: 1.3 Author: ClipTheme -->
<!--[if IE 8]><html class="ie8 no-js" lang="en"><![endif]-->
<!--[if IE 9]><html class="ie9 no-js" lang="en"><![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- start: HEAD -->
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8"/>
    <title>用户注册--医疗器械在线商城</title>

    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css"
          href="http://cdn.datatables.net/1.10.15/css/jquery.dataTables.css">
</head>

<body>
<div id="header">
    <%
        Map<Integer,Goods> map = (Map<Integer,Goods>)session.getAttribute("goodsCart");
    %>
</div>
    <div class="top"> 
    <c:choose>
        <c:when test="${user.userName!=null}">
            <span>${sessionScope.user.userName}欢迎您</span>
        </c:when>
        <c:when test="${user.userName!=null}">[<a href="register.jsp">登录</a>][<a href="login.jsp">注册</a>]</c:when>

    </c:choose>
    </div>
         <div class="cart">
             您的<a href="cart.jsp">购物车</a>&nbsp;&nbsp;目前有<strong><%=map!=null?map.size():0 %></strong>件商品
         </div>
         <div id="nav">
             <ul>
                 <li><a href="index.jsp">首页</a> </li>
                 <li><a href="index.jsp">家用器械</a> </li>
                 <li><a href="index.jsp">医用器械</a> </li>
                 <li><a href="index.jsp">保健养生</a> </li>
                 <li><a href="index.jsp">健康中心</a> </li>
                 <li><a href="index.jsp">服务中心</a> </li>

             </ul>
         </div>
         <div class="glyphicon-search">
           <form action="#"> <input class="glyphicon-search" type="text" style="height:18px;line-height:18px;width:180px;"
             onkeydown="javascript:if(event.keyCode==13)_fnDataToSearch(0);" placeholder="请输入商品名称或品牌..."
            autocomplete="off">
             <input name="btnsearch" class="search-btn" id="newbtnsearch" type="image" src="http://s.yiliu88.com/images2017/search_btn.jpg" value="搜 索">
           </form>
             <table>
                 <tr>
                     <td width="230" height="20" align="right">欢迎访问医疗器械商城,现在是:</td>
                     <td width="400" align="left" id="DateTime">
                         <script>
                             setInterval("DateTime.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
                         </script>
                     </td>
                 </tr>
             </table>
         </div>




<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1" >
    <div class="row">
    <form role="form"action="/user/save/${user.userId}" method="post"  >
        <span style="font-size:20px;" class="htext"><b>用户注册</b></span>(<span style="color:red; "> * </span>为必填项)

        <div class="form-group">
            <label> 用&nbsp;&nbsp;户&nbsp;&nbsp;名：</label>
                <input type="text" name="userName"  class="form-control" value="${user.userName}"  placeholder="用户名应大于6位小于18位"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
            <input type="password" name="passWord"  class="form-control" value="${user.passWord}"  placeholder="密码应大于6位小于14位"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>确认密码：</label>
            <input type="password" name="passWord2"  class="form-control" value="${user.passWord2}"  placeholder="确认密码应与密码保持一致"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>密码问题：</label>
            <input type="text" name="pwdQuestion"  class="form-control" value="${user.pwdQuestion}"  placeholder="记住提出的问题"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>问题答案：</label>
            <input type="text" name="pwdAnswer"  class="form-control" value="${user.pwdAnswer}"  placeholder="记住答案"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>电子邮箱：</label>
            <input type="text" name="email"  class="form-control" value="${user.email}"  placeholder="邮箱格式应为常用邮箱地址"><span style="color:red; ">*</span>
        </div>
        <div class="form-group">
            <label>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</label>
            <input type="radio" name="sex"  class="form-control" value="${user.sex}" style="margin-left: 20px" >男
            <input type="radio" name="sex"  class="form-control" value="${user.sex}" style="margin-left: 20px" >女
            <input type="radio" name="sex"  class="form-control" value="${user.sex}" style="margin-left: 20px" >保密
        </div>
        <div class="form-group">
            <label>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</label>
            <input type="text" name="phone"  class="form-control" value="${user.phone}"  placeholder="">
        </div>
        <div class="form-group">
            <label>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
            <select id="s1" name="s1"></select>
            <select id="s2" name="s2"></select>
            <select id="s3" name="s3"></select>
        </div>
        <div class="form-group">
            <label>详细地址：</label>
            <input type="text" name="address"  class="form-control" value="${user.address}"  >
        </div>
        <div class="form-group">
            <label>邮政编码：</label>
            <input type="text" name="postCode"  class="form-control" value="${user.postCode}"  >
        </div>
        <div class="form-group">
            <label>验&nbsp;&nbsp;证&nbsp;&nbsp;码：</label>
            <input type="text" name="yzm"  class="text yzm" ><span style="color:red; ">*</span>
            <input type="text" name="yzm2"  class="text yzm2" size="8" readonly="true" onClick="init();">
        </div>

    <input type="submit" value="提交" class="button">
    <input type="reset" value="重置" class="button" onClick="init();">
<label class="navbar-fixed-bottom"> 我已阅读并同意<a style="color: #337ab7" href="index.jsp">《服务协议》</a></label>
        <button type="submit" class="btn btn-default"><<a href="login.jsp">同意协议并注册</a>   </button>


                    <input type="submit" value="提交" class="button">
                    <input type="reset" value="重置" class="button" onClick="init();">

    </form>
    </div>
</div>




<div class="w990" style="margin-top: 30px">
<div class="footer-link">
    <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#jyfw">互联网药品交易服务资格证</a>
    <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#xxfw">互联网药品信息服务资格证</a>
    <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#jyxk">医疗器械经营许可证</a>
    <a href="http://www.yiliu88.com/helpcenter/zizhi.aspx#zzdx">增值电信业务经营许可证</a>
    <hr style="color: #cccccc" size="1px"/></div>
<div class="call" >
   客户服务热线：400-111-0000
</div>
    <div class="copyright"></div>
    <span>
        Copyright&copy;&nbsp;2018&nbsp;&nbsp;医疗器械<a href='index.jsp'>www.ylqx.com</a>商城保留一切权利。
        &nbsp;All Rights Reserved.&nbsp;&nbsp;<br />
        &nbsp;&nbsp;
        地址：河南省平顶山市平顶山学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </span>
</div>

</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>


</html>